package com.airticketbooking.mapper;

import com.airticketbooking.po.DiscountType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author Mr.J
 * @version 1.0.0
 * @date 2024/11/13
 * @desc
 */
@Mapper
public interface DiscountTypeMapper{

//	通过id查询折扣类型
	@Select("SELECT * FROM airticketbooking.discount_type WHERE discount_type_id = #{id}")
	DiscountType getDiscountTypeById(Integer id);

//	根据积分多少查询折扣类型

	DiscountType getByPoint(Integer point);

}
